home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
BARNET
/
FREENET
/
WARD
/
HTMLKEYS
/
HTML
/
Help
< prev
Wrap
Text File
|
1995-11-14
|
20KB
|
632 lines
<HTML>
<HEAD>
<TITLE> Quick guide to HTML key bindings </TITLE>
<LINK REV="made" HREF="mailto:andy@websvcs.demon.co.uk>
</HEAD>
<BODY BGCOLOR="#FFFFFF"
BACKGROUND="graphics/node.gif"
TEXT="#000000"
LINK="#001DFF"
VLINK="#FF8080">
<H1 ALIGN=CENTER>The Zap HTML Keymap</H1>
<HR ALIGN=CENTER WIDTH="25%">
<P>
This is the second release of the <EM>HTML Keybindings for</EM> <STRONG>Zap</STRONG>!
Originally developed under the codename <EM>'Milton Keynes'</EM> and having passed
through an exhaustive 1 hour beta testing session keymap is now on official release.
As of now, the files will be publicly known as <STRONG>HTMLMap 95</STRONG>
®<!-- ® -->.
</P>
<P>
<STRONG>HTMLMap 95</STRONG>®<!-- ® --> will revolutionise the way you
work. Within 1 hour of starting to use this key map we promise you that
you will no longer consider HTML coding to be a chore, <STRONG>or your
money back</STRONG>! Yes! We guarantee you that you will soon find HTML
authoring more fun than a dirty weekend with Pamella Anderson! </P>
<P>
Honest!
</P>
<P>
Well, OK; that's a <EM>slight</EM> exaggeration, but it <EM>does</EM> make
some things easier. For instance, I originally knocked up this 13K of
documentation in about 2 hours, and it's actually quite complex. Yes,
really! (It's 19K now, as I've filled it out a bit, and there have been some
<A HREF="changes.html">changes</A> between versions.)
</P>
<P>
Anyway, here's the Contents page!
</P>
<HR>
<H2 ALIGN=CENTER>The Contents Page</H2>
<H3>
<!-- Yes, I know you shouldn't nest a list in a Heading, but it makes a nice TOC -->
<OL>
<LI> <A HREF="#Legal">The Legal Guff</A>
<LI> <A HREF="#Install">Installation</A>
<LI> <A HREF="#Overview">Overview</A>
<LI> <A HREF="#KeyCut">Keycut Rundown</A>
<OL>
<LI> <A HREF="#NonHTML">Non-HTML keys common to both maps</A>
<LI> <A HREF="#HTML">HTML keys common to both maps</A>
<LI> <A HREF="#Create">Creation Map Keycuts</A>
<OL>
<LI> <A HREF="#Simple">The Simple Ones</A>
<LI> <A HREF="#LessSimple">The Less Simple Ones</A>
<LI> <A HREF="#Lists">Lists</A>
</OL>
<LI> <A HREF="#Markup">Markup Map Keycuts</A>
</OL>
<LI> <A HREF="#Bugs">Known Bugs</A>
</OL>
</H3>
<HR>
<A NAME="Legal"></A>
<H2 ALIGN=CENTER>Legal Guff</H2>
<P>
Don't come running to me in the event that this keymap does something
unlikely, such as trashing your computer or harddisc, eating your dog, or
invading Poland and starting World War III.
</P>
<P>
This keymap and its associated documentation are <EM>© Andrew Ward 1995</EM>
and are released as Freeware into the Pubic Domain in the hope that others
will find it useful. Feel free to alter it to suit your tastes, though.
Finally, <STRONG>don't even think about charging money for it! </STRONG>
(PD libraries may slap it on a disc as long as the charge per disc is
reasonable.)
</P>
<P>
[<EM>Sorry, I had to put that last bit in otherwise this'll be on sale
at </EM>LongCo<EM> or some such </EM>]
<IMG SRC="graphics/smile.jpg" ALIGN=CENTER ALT=":-)">
</P>
<P>
<EM>Distribute freely, though please don't separate the documentation from
the Keys file.</EM>
</P>
<H3>Acknowledgments</H3>
<P>
Thanks to Dom Symes firstly for the excellent <EM>Zap</EM> (without which
I would be wasting my time now <IMG SRC="graphics/smile.jpg" ALIGN=CENTER ALT=":-)">
and secondly for the default keymap which this HTML keymap is appended to.
</P>
<HR>
<A NAME="Install"></A>
<H2 ALIGN=CENTER>Installation</H2>
<P>
<EM>Note: This keymap is designed for use with Zap 1.30. It will not work
with any earlier versions without some alterations. Get version 1.30 -
It's great! <IMG SRC="graphics/smile.jpg" ALIGN=CENTER ALT=":-)"> </EM>
</P>
<P>
Basically, to install this keys file you must be one of two sorts of Zap user:
</P>
<OL>
<LI>You are the apprehensive/easy-to-please type and haven't altered the
default <EM>Zap</EM> keymap. This is great, because all you have to do is
drag this Keys file over the default Keys file inside the <EM>Zap</EM>
application, and Bob's your uncle.
<LI>You are the stubborn, awkward type who has completely customised your keys
file to your liking, so as to make optimum use of your 12 fingers and 3
tentacles (this keymap is more commonly known as the <EM>vi</EM> bindings). You
also have the alphabet mapped in such a way that everything you type is
automatically ROT13'd.
<P>
In short you are a pain in the arse, and since you obviously know what you're
doing I'll leave it up to you to <EM>munge</EM> the two keymaps together. All
my stuff is at the end.
</OL>
<HR>
<A NAME="Overview"></A>
<H2 ALIGN=CENTER>Overview</H2>
This <EM>Zap</EM> keymap is for those of you who like to edit their HTML
by hand, for whatever reason:
<UL>
<LI> You haven't got <EM>Impression </EM> <STRONG>or</STRONG> don't want
to give Ben Summers any money for his HTML loaders/savers.
<LI> You don't want to line Andrew Rawnsley's pockets with 30 quid for
<EM>!HTMLEdit</EM>. Especially when it's based around <EM>Edit</EM>!
<STRONG>Yeuck</STRONG>
<LI> You get some perverse gratification from seeing '<' and '>'
characters all over your screen.
<LI> You actually need the power of editing HTML directly so you can
add all those cheesy <A HREF="http://you.don't.wanna.do.that!">
<EM>Netscape</EM></A> hacks that Acorn WYSIWYG editors don't support.
<LI> Or you might even (<EM>Shock! Horror!</EM>) want to code some
proper HTML3.
<LI> In my case, it's all the above.
</UL>
<P>
Having said all that, this keymap is <STRONG>not</STRONG> for those who haven't
got the first clue about writing HTML. Presently, if you want a WYSIWYG editor
for an Acorn your only option is to use Impression with Ben Summer's saver's.
</P>
<P>
Anyway, back to business, this <EM>Zap</EM> keys file takes some of the
pain and tedium out of editing HTML by hand by providing a load of key
shortcuts for some commonly typed tags. It also will automatically convert
all those top bit characters into their proper HTML entities. There are
two new keymaps, for two different methods of document creation, though
they are broadly similar.
</P>
<H3>HTML Creation Map</H3>
<P>
The first keymap is for creating HTML on a blank page, so that you can type the
tags in on the fly, as and when you need to put them in your text. i.e Typing
</P>
<P>
<KBD>
The best text editor for the <STRONG>[Ctrl-E] </STRONG> Acorn
<STRONG>[Ctrl-Sh-E] </STRONG> range of computers is <STRONG>[Ctrl-S] </STRONG> Zap
<STRONG>[Ctrl-Sh-S]</STRONG>.
</KBD>
</P>
<P>
(Where <STRONG>[Ctrl-S]</STRONG> means pressing <EM>Control</EM> and the
letter <EM>S</EM> simultaneously, and <STRONG>[Ctrl-Sh-S]</STRONG> means
pressing <EM>Control, Shift</EM> and <EM>S</EM>
simultaneously, <STRONG>OK</STRONG>)
</P>
<P>
will produce HTML that looks like:
</P>
<P>
<CODE>
The best text editor for the <EM>Acorn</EM> range of computers is
<STRONG>Zap</STRONG>.
</CODE>
</P>
<P>
Which would <EM>should</EM> hopefully get rendered as:
<P>
The best text editor for the <EM>Acorn</EM> range of computers is <STRONG>Zap</STRONG>.
</P>
<H3>HTML Markup Map</H3>
<P>
The second keymap is for marking up an existing text file. Basically you
can highlight the region you want to apply the tag to and hit the keycut
to put the HTML markers around it. For example, take the following
pre-typed paragraph in Zap:
</P>
<P>
<CODE>
My Acorn Computer's great. It's just so damn easy to use, and combined with
the all-singing all-dancing editor, Zap, HTML editing is a breeze.
</CODE>
<P>
By high-lighting the words <EM>Acorn Computer</EM> and hitting
<STRONG>[Ctrl-A] </STRONG> Zap will enclose the selection with
<I><A HREF="></I> and <I></A></I> so you get:
</P>
<P>
<CODE>
My <A HREF="">Acorn Computer's</A> great. It's just so
damn easy to use, and combined with the all singing all dancing editor,
Zap, HTML editing is a breeze.
</CODE>
</P>
<P>
Not only that, but it will <STRONG>also</STRONG> place the cursor after
the <EM>quote</EM> ready for you to type in the rest of the URL. I've
also pinched the Fresco convention, where hitting <EM>Tab</EM> will
enter <CODE>http://www.</CODE> and <EM>Shift-Tab</EM> enters <CODE>
ftp://ftp.</CODE>
</P>
<P>Simple, yeah? Anyway, enough of the waffle; here's the definitive listing
of what keycuts do what.
</P>
<HR>
<A NAME="KeyCut"></A>
<H2 ALIGN=CENTER>Keycut Rundown</H2>
<P>
I've tried to make the keys obvious, or at least attach the most used tags
to the obvious keys, though some of this is pretty subjective. Feel free to
hack it round if you want. I haven't been able to get all the baseline
HTML2 tags allocated to keys, because I ran out of letters, and using Meta
keypresses gets a bit messy with multiple keymaps, since there is no way
of saving the previous keymap you were using.
</P>
<H3>Conventions</H3>
<P>
I'm using the Zap Keys file convention of <STRONG>c</STRONG> for
<EM>Control</EM> and <STRONG>s</STRONG> for <EM>Shift</EM> though I'll
undoubtedly change my mind just to keep you on your toes.
</P>
<A NAME="NonHTML"></A>
<H3>Non-HTML Keycuts common to both keymaps</H3>
<PRE>
Action Key
============================================
Change to HTML Creation Mode c\
Change to HTML Markup Mode cs\
Return to Default Keymap Esc
Pass next key to default keymap cQ
Copy Selection cC
Cut Selection cX
Move Selection cV
(This used to be ctrl-M but I got fed up with
the inconsistency :)
Clear Selection cZ
Select Word at cursor cW
</PRE>
<A NAME="HTML"></A>
<H3>HTML related keys common to both maps</H3>
<DL>
<DT> <STRONG>Ctrl-Shift-7 (Ctrl-&)</STRONG>
<DD> Inserts the escaped ampersand , <STRONG>&</STRONG> (&)
<DT> <STRONG>Ctrl-Shift-9 (Ctrl-( )</STRONG>
<DD> Inserts the escaped version of <STRONG><</STRONG> (<)
<DT> <STRONG>Ctrl-Shift-0 (Ctrl-) )</STRONG>
<DD> Inserts the escaped version of <STRONG>></STRONG> (>)
<DT> <STRONG>Ctrl-Shift-C</STRONG>
<DD> Inserts the <STRONG>©</STRONG> symbol (©) Be aware that
© is a dreaded Netscapism, whereas © is the agreed W3
standard for the copyright symbol.
<DT> <STRONG>Ctrl-Shift-Q</STRONG>
<DD> Inserts the quote entity " (")
<DT> <STRONG>£<!-- £ --></STRONG>
<DD> Inserts the <STRONG>£<!-- £ --></STRONG> sign. (£)
<EM>Note</EM>, usage of Ctrl-Shift-L is now depreciated ;-) .
</DL>
<P>
As well as using the above keys for the most commonly used entities, you
will find that if you use <EM>Chars</EM> (or a similar utility), or even
whack in the ASCII value with ALT held down, the HTML entity will be entered
for you. Where available I've used the legal entity name (e.g <EM>Á</EM>)
rather than use the generic ASCII value. However, where I do use the ASCII
value you'll also get the full 8 bit character contained in a comment, so
you know what it is when you come back in future (e.g ASCII 178 inserts
<CODE>²<!-- ²<!-- ² --> --></CODE> into your source.)
If you don't like it, you know what you can do with it, don't you
<IMG SRC="graphics/smile.jpg" ALIGN=CENTER ALT=":-)">!
</P>
<P>
Note, that if you use the system font in <EM>Chars</EM> then you must have
the ISO-Latin-1 alphabet selected, otherwise you won't get what you expected
appearing.
</P>
<P>
As I mentioned earlier on, hitting <EM>Tab</EM> or <EM>Shift-Tab</EM> will
enter <CODE>http://www.</CODE> and <CODE>ftp://ftp.</CODE> respectively.
I deliberately haven't bound <STRONG>gopher</STRONG> to <EM>Ctrl-Tab</EM>
since I use <EM>Coolswitch</EM> from Andy Armstrong which gives Window's ®<!-- ® -->
style ALT & Ctrl Tab'ing, and this interferes with it. I was going to
bind <EM>Ctrl-Shift-Tab</EM> to a real TAB, but I also use the excellent
<EM>Director</EM> from Nick Craig-Wood, which has the memoriser mapped to
that keypress. <STRONG>B*gger</STRONG>! Too many patches
<IMG SRC="graphics/smile.jpg" ALIGN=CENTER ALT=":-)">! Besides, I think
I can count the number of times I've entered <CODE>gopher://gopher.</CODE>
in a HTML document on the fingers of one hand.
</P>
<P>
Some of you may not like Tab being bound to something as silly as http://www
but I wanted to stay true to the Fresco convention. If you don't like
it, unbind it, or <EM>Ctrl-Q</EM> it. If it's any consolation, <A HREF="#Lists">lists</A>
automatically indent themselves.
<P>
One final set of keycuts common to both maps are the <EM>Ctrl-Shift-Cursor</EM>
keys. <EM>Ctrl-Shift-Left</EM> and <EM>Ctrl-Shift-Right</EM> skip
backwards and forwards between attributes. (The search pattern is
<STRONG>="</STRONG>). This feature is very useful for swapping between,
say, the <EM>SRC</EM> and the <EM>ALT</EM> attributes of an <EM>IMG</EM>
tag.
</P>
<P>
<EM>Ctrl-Shift-Up</EM> and <EM>Ctrl-Shift-Down</EM> go to the beginning of
the previous tag, and the end of the next, respectively. Try it and see.
</P>
<A NAME="Create"></A>
<H3>HTML keys for Creation Keymap </H3>
<P>
Probably the best way to remember what keys do what is to fire up Zap
and have a go. As mentioned above, <EM>Ctrl-\</EM> changes to the HTML
creation keymap. So, do that then suck it and see.
</P>
<A NAME="Simple"></A>
<H4>The Simple ones</H4>
<!-- My kingdom for Universal Tables support :-) -->
<PRE>
Key Ctrl Ctrl-Sh
============================================
A <A HREF=""> </A>
B <B> </B>
D <DFN> </DFN>
E <EM> </EM>
I <I> </I>
K <KBD> </KBD>
L Go to list Keymap for next key only
M <META >
N <A NAME=""> Easter Egg
P <PRE> </PRE>
Q Next keypress only goes to default keymap
R <!-- --> (LET R = REM)
S <STRONG> </STRONG>
T <TT> </TT>
U <U> </U> (Underline)
1 <H1> </H1>
2 <H2> </H2>
... 3-5 left as an exercise to the reader ...
6 <H6> </H6>
</PRE>
<A NAME="LessSimple"></A>
<H4>The Less Simple ones</H4>
(The ones I couldn't fit in the table sensibly
<IMG SRC="graphics/smile.jpg" ALIGN=CENTER ALT=":-)">!
<DL>
<DT> <STRONG>Ctrl-F</STRONG>
<DD> Inserts <CODE> <FORM METHOD="POST" ACTION=" </CODE>
<DT> <STRONG>Ctrl-Shift-F</STRONG>
<DD> Inserts <CODE> </FORM> </CODE>
<DT> <STRONG>Ctrl-G</STRONG>
<DD> Inserts an inline GIF as in : <CODE> <IMG SRC=".gif"> ALT=""</CODE>
and puts the cursor before the dot of <EM>.gif</EM> ready for you to type
in the URL. Gosh! Aren't I kind saving you all those keypresses
<IMG SRC="graphics/smile.jpg" ALIGN=CENTER ALT=":-)">?
<P>
<DD>In a perfect world this would be mapped to <EM>Ctrl-I</EM> but that's
already pinched by <I> Besides G was unallocated, and the
alternative was J ...
<DT> <STRONG>Ctrl-J</STRONG>
<DD> Which nicely inserts an inline JPEG <EM>comme ça</EM> :<CODE> <IMG
SRC=".jpg"> ALT=""</CODE> and again conveniently places the cursor before the
dot.
<DT> <STRONG>Ctrl-H</STRONG>
<DD> Puts the basic HTML Header around a document. ie.
<PRE>
<HTML>
<HEAD>
<TITLE> </TITLE>
</HEAD>
<BODY>
</BODY>
</HTML>
</PRE>
<DD>Any text previously on the page will be left between the <EM>BODY</EM> tags.
Don't forget to put some text in for the <EM>TITLE</EM>. If you want to add
your Netscape pretties to the <EM>BODY</EM> section do it yourself
<IMG SRC="graphics/smile.jpg" ALIGN=CENTER ALT=":-)">!
<DT> <STRONG>Ctrl-RETURN</STRONG>
<DD> Puts in a line Break : <EM><BR></EM>
<DT> <STRONG>Shift-RETURN</STRONG>
<DD> Inserts a paragraph break <EM>(sic)</EM> : <EM><P></EM>
<DT> <STRONG>Ctrl-Shift-RETURN</STRONG>
<DD> Inserts the close paragraph tag : </P>
</DL>
<A NAME="Lists"></A>
<H4> The List Keymap </H4>
<P>
By hitting <EM>Ctrl-L</EM> in the keymap, the next key goes to this map (after a
key is pressed, you revert back to the old keymap). This allows you to
have all the list tags mapped to keys in a semi-sensible fashion, and still apply
all the previous tags to text in a list.
</P>
<PRE>
Key Ctrl Ctrl-Sh
============================================
D <DL> </DL>
E <DD> (E valuates to)
L <LI>
M <MENU> </MENU>
O <OL> </OL>
T <DT> (T erm)
U <UL> </UL>
</PRE>
<P>
<STRONG>Remember</STRONG> you have to precede each of these keypresses by
<EM>Ctrl-L</EM> to enable the keymap. Also note that the the lists try to
autoindent (and outdent) themselves to help readability. I included this
because the Tab key seems to have buggered off and become <EM>http://www.</EM>
<IMG SRC="graphics/smile.jpg" ALIGN=CENTER ALT=":-)"> . E.g Try entering a definition
list, and watch the <EM>Definition</EM> indent by a tab, and the following
<EM>Term</EM> outdent again.
</P>
<P>
OK! That's most of it out the way. Now for the Markup Section ...
</P>
<HR>
<A NAME="Markup"></A>
<H3>HTML keys for Markup Keymap</H3>
<P>
<STRONG><SPEECH TYPE="Jack Dee" Value="Well_known_beer_ad"></STRONG>
</P>
<P>
<EM>Oh... I can't do this!</EM>
</P>
<P>
<STRONG></SPEECH></STRONG>
</P>
<P> Yep, I <EM>really</EM> can't be bothered to go through all the same
stuff again going over the minor differences between the Creation and
Markup maps! I've got better things to do <IMG SRC="graphics/smile.jpg"
ALIGN=MIDDLE ALT=":-)">! Basically, all the keys are mapped onto the same
tags, except, when you apply a container tag, such as <EM> you end
up with the tags put around the selected text. This is really all one big
bodge, so it <A NAME="NOSEL"><STRONG>only</STRONG></A> works properly when
you have a selection highlighted. If you don't, you will find whatever you
selected <STRONG>last</STRONG> slapped inbetween the container tags. This
is basically because, what the macro does is a process of : </P>
<OL>
<LI>Cut Selection.
<LI>Insert start tag.
<LI>Paste back selection.
<LI>Insert end tag.
</OL>
<P>
And if it couldn't cut anything in step one you'll paste rubbish back. In short
<STRONG>don't do it</STRONG>. If you need <EM>create</EM> HTML put yourself in
Creation mode, and if you want to <EM>markup</EM> make sure you're in Markup mode.
</P>
<P>
Right, that's it! Simple yeah? If you want to change anything, feel free, though
if you make any majorly useful changes I'd appreciate a copy. Oh, and if you don't like
your tags in capitals tough, 'cos I do!
</P>
<HR>
<A NAME="Bugs"></A>
<H2 ALIGN=CENTER>Known Bugs</H2>
<UL>
<LI>There appears to be a bug in Zap's redraw code that leaves behind a ghost cursor
when a complex series of '<EM>INSERTs</EM>' are carried out. This is especially
visible when using the <EM>[Ctrl-H]</EM> 'Header' keycut. Redrawing the window
sorts it out.
<LI>Using the container tags in the markup mode without a selection. See
<A HREF="#NOSEL">above</A>
</UL>
<P>
<EM>Everything else is <STRONG>your</STRONG> fault! </EM>
<IMG SRC="graphics/smile.jpg" ALIGN=CENTER ALT=":-)">
</P>
<P>
That'll be it then! Any problems, bugs (Ha!), requests, remunerations etc. to the
<EM>Netscape enhanced</EM> email address below.
</P>
<HR>
<H1 ALIGN=CENTER>
<IMG SRC="graphics/Globe.jpg" ALIGN=CENTER ALT="">
CONNECTIV
<IMG SRC="graphics/Globe.jpg" ALIGN=CENTER ALT="">
</H1>
<ADDRESS>
<P ALIGN=CENTER>
<A HREF="mailto:andy@websvcs.demon.co.uk">andy@websvcs.demon.co.uk</A>
</P>
</ADDRESS>
</BODY>
</HTML>